<div id="cotp">
Phần Mềm
</div>
<?php
	$sql="SELECT * FROM phanmem where states='1'  ORDER BY datepost DESC";
	$spql=$dp->QueryAll($sql);
?>
<?php
$limit=3;
$total=count($spql);
$current=$dp->PageCurrent();
$dau=$dp->FirstRecord($current,$limit);
$cuoi=$dp->LastRecord($current,$limit,$total);
for($i=$dau;$i<=$cuoi;$i++)
{
	$id=$spql[$i]['id'];
	$name=$spql[$i]['name'];
	$datepost=$spql[$i]['datepost'];
	?>

	<div id="tb2">
		<br>
		<b><a class=thongbao2  <a href="index.php?option=phanmem&id=<?php echo $id?>">
			<?php echo $name;?> 
			</a></b>
	<br>
		<td align="center"><i class=kt2><?php echo $datepost;?></i>
	<br>
	</div>
	<?php
		}
	?>